Dynomotion

Group: DynoMotion Message: 15147 From: kn6za Date: 11/10/2017
Subject: Changing DRO readout precision

Anyone know how to change the DRO readout in one axis from 4 right of decimal to 3 places?


The only one I need to change is my rotary axis, my linear axis's need to stay at 4 places.


   Thanks,

    Andrew 

Group: DynoMotion Message: 15152 From: Tom Kerekes Date: 11/13/2017
Subject: Re: Changing DRO readout precision
Hi Andrew,

Can you explain why you need to do this?

Its currently hard coded in KMotionCNCDlg.cpp as:
   
    s.Format(" X:%10.4f ",x);
    KillMinusZero(s);
    Disp0->SetText(s);

    s.Format(" Y:%10.4f ",y);
    KillMinusZero(s);
    Disp1->SetText(s);

    s.Format(" Z:%10.4f ",z);
    KillMinusZero(s);
    Disp2->SetText(s);

    s.Format(" A:%10.4f ",a);
    KillMinusZero(s);
    Disp3->SetText(s);

    s.Format(" B:%10.4f ",b);
    KillMinusZero(s);
    Disp4->SetText(s);

    s.Format(" C:%10.4f ",c);
    KillMinusZero(s);
    Disp5->SetText(s);

Maybe fixed based on Units or Angular might be simpler. 

Regards
TK




Regards
TK


On 11/10/2017 4:13 PM, kn6za@... [DynoMotion] wrote:
 

Anyone know how to change the DRO readout in one axis from 4 right of decimal to 3 places?


The only one I need to change is my rotary axis, my linear axis's need to stay at 4 places.


   Thanks,

    Andrew 


Group: DynoMotion Message: 15153 From: andrew abken Date: 11/13/2017
Subject: Re: Changing DRO readout precision

Hi Tom,

Not a necessity for me by any means. I thought if it was an already available configuration option to limit the display to 3 places, as my rotary axis on my other machines displays to 3, I  would make the change.

Do not go to the effort to make a change to the code for this, it's not that big a deal. I can continue without it.

Thanks

Andrew
On Nov 13, 2017, at 11:04 AM, "Tom Kerekes tk@... [DynoMotion]" <DynoMotion@yahoogroups.com> wrote:
 

Hi Andrew,

Can you explain why you need to do this?

Its currently hard coded in KMotionCNCDlg.cpp as:
   
    s.Format(" X:%10.4f ",x);
    KillMinusZero(s);
    Disp0->SetText(s);

    s.Format(" Y:%10.4f ",y);
    KillMinusZero(s);
    Disp1->SetText(s);

    s.Format(" Z:%10.4f ",z);
    KillMinusZero(s);
    Disp2->SetText(s);

    s.Format(" A:%10.4f ",a);
    KillMinusZero(s);
    Disp3->SetText(s);

    s.Format(" B:%10.4f ",b);
    KillMinusZero(s);
    Disp4->SetText(s);

    s.Format(" C:%10.4f ",c);
    KillMinusZero(s);
    Disp5->SetText(s);

Maybe fixed based on Units or Angular might be simpler. 

Regards
TK




Regards
TK


On 11/10/2017 4:13 PM, kn6za@... [DynoMotion] wrote:
 

Anyone know how to change the DRO readout in one axis from 4 right of decimal to 3 places?


The only one I need to change is my rotary axis, my linear axis's need to stay at 4 places.


   Thanks,

    Andrew